package leetcode.search;

import leetcode.search.comon.SearchUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * leetcode33 原题  字节面试题
 */
@Slf4j
public class binarySearch01 {

    public static void main(String[] args) {
//        int[] array = {21, 23, 35, 37, 49, 59, 10, 14, 16, 19};
//        int[] array = {21, 23};
//        int[] array = {21};
//        int[] array = {21, 23, 35};
        int[] array = {21, 23, 35, 37};

        int key = 35;
        int index = SearchUtils.findTheKey(array, key);
        System.out.println(index);
    }

}
